home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
How Would You Survive?
/
How Would You Survive (1995)(Grolier)[Mac-PC].iso
/
mac
/
VIKINGW.DIR
/
01642_Script_Farming
< prev
next >
Wrap
Text File
|
1995-09-12
|
2KB
|
91 lines
global gbeenclicked, gQuest, gLeftHouseOpen
on VFarmingRollovers
set gbeenclicked = 0
if (not(CheckClickedStatus(gQuest))) then
if the mousecast = the castnum of sprite 2 then
if gLeftHouseOpen = 0 then
repeat while the mousecast = the castnum of sprite 2
VikingCursor
if (the mousedown) then
set gbeenclicked = 1
else
--the mouse is up
if gbeenclicked = 1 then
repeat while gbeenclicked = 1
RemoveFarmHouse
end repeat
end if
end if
end repeat
end if
else
if rollover(9) then
ArrowCursor
repeat while rollover(9)
set the locH of sprite 27 to 442
set the locV of sprite 27 to 154
updatestage
end repeat
set the locH of sprite 27 to 942
updatestage
else
if rollover(10) then
ArrowCursor
repeat while rollover(10)
if gLeftHouseOpen = 1 then
set the locH of sprite 28 to 288
set the locV of sprite 28 to 160
updatestage
else
set the locH of sprite 16 to 288
set the locV of sprite 16 to 160
updatestage
end if
end repeat
set the locH of sprite 28 to 988
set the locH of sprite 16 to 988
updatestage
else
if rollover(41) then
HandCursor
else
if rollover(42) then
HandCursor
else
ArrowCursor
end if
end if
end if
end if
end if
end if
RandomQuestion(gQuest)
end
on RemoveFarmHouse
ArrowCursor
puppetsound "SV220101.AIF"
updatestage
wait .5
puppetsprite 2, true
puppetsprite 26, true
set the locV of sprite 2 = 900
set the locH of sprite 26 = 525
updatestage
wait 3
set gLeftHouseOpen = 1
set gbeenclicked = 0
end
on ResetFarmHouse
global gLeftHouseOpen
set the locV of sprite 2 = 296
set the locH of sprite 2 = 354
set the locH of sprite 26 = 925
puppetsprite 2, false
puppetsprite 26, false
updatestage
set gLeftHouseOpen = 0
end